package com.zidongxiangxi.clock.http.constants;

import com.zidongxiangxi.clock.http.exception.ErrorCode;

/**
 * 闹钟服务异常枚举
 *
 * @author chenxudong
 * @date 2020/07/22
 */
public class ClockErrorCodeConstant {
    /**
     * 1、请求校验问题100xxx
     * 2、数据问题 200xx
     * 3、接口调用失败
     * 4、系统相关错误400xx
     * 5、系统内部异常 500xx
     * 6、权限问题
     */
    public static final ErrorCode PARAMS_ERROR = new ErrorCode(10000, "参数错误");
    public static final ErrorCode PARAMS_MISSING = new ErrorCode(10001, "缺少必要参数");
    public static final ErrorCode TARGET_RING_TIME_BEFORE_NOW = new ErrorCode(10002, "响铃时间是已过去时间");
    public static final ErrorCode LATEST_RING_TIME_BEFORE_TARGET_RING_TIME = new ErrorCode(10003, "最后响铃时间小于目标响铃时间");
    public static final ErrorCode APPLICATION_MUST_NOT_EMPTY = new ErrorCode(10004, "应用不能为空");
    public static final ErrorCode BUSINESS_ID_MUST_NOT_EMPTY = new ErrorCode(10005, "业务id不能为空");
    public static final ErrorCode TARGET_RING_TIME_MUST_NOT_EMPTY = new ErrorCode(10005, "响铃时间不能为空");

    public static final ErrorCode ADD_CLOCK_FAIL = new ErrorCode(30001, "保存闹钟信息失败");
    public static final ErrorCode CLOCK_NOT_EXIST = new ErrorCode(30002, "闹钟id不存在");
    public static final ErrorCode DELETE_CLOCK_FAIL = new ErrorCode(30003, "删除闹钟信息失败");
    public static final ErrorCode EXIST_SAME_CLOCK = new ErrorCode(30004, "已存在相同业务id的闹钟");

}
